From: LLVM Packaging Team Date: Sun, 8 Jan 2023 11:31:57 +0000 (+0000) Subject: unwind-force-pthread-dl X-Git-Tag: archive/raspbian/1%15.0.7-10+rpi1~1^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8636ebfb224cc5de8a1a57aebf27e09a95a92df0;p=llvm-toolchain-15.git unwind-force-pthread-dl =================================================================== Gbp-Pq: Name unwind-force-pthread-dl.diff --- diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt index 5a06805f05..2b82ccd65f 100644 --- a/libunwind/CMakeLists.txt +++ b/libunwind/CMakeLists.txt @@ -309,14 +309,17 @@ if (MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif() -if (C_SUPPORTS_COMMENT_LIB_PRAGMA) - if (LIBUNWIND_HAS_DL_LIB) +list(APPEND LIBUNWIND_LINK_FLAGS "-ldl") +list(APPEND LIBUNWIND_LINK_FLAGS "-lpthread") + +#if (C_SUPPORTS_COMMENT_LIB_PRAGMA) +# if (LIBUNWIND_HAS_DL_LIB) add_definitions(-D_LIBUNWIND_LINK_DL_LIB) - endif() - if (LIBUNWIND_HAS_PTHREAD_LIB) +# endif() +# if (LIBUNWIND_HAS_PTHREAD_LIB) add_definitions(-D_LIBUNWIND_LINK_PTHREAD_LIB) - endif() -endif() +# endif() +#endif() #=============================================================================== # Setup Source Code